/**
 * Description:信息提示类，用于操作后的提示
 * Company:济南东域信息科技有限公司
 * @author lld
 * @version 1.0
 */
package com.douyu.water.core;

public class DwzResult 
{
	public static final String STATUS_CODE_SUCCESS = "200";
	public static final String STATUS_CODE_ERROR = "300";
	public static final String STATUS_CODE_TIMEOUT = "301";
    public static final String URL="App/Common/result";
	public static final String CALLBACKTYPE_CLOSE_CURRENT="closeCurrent";
	public static final String CALLBACKTYPE_FORWARD="forward";


	private String statusCode;
	private String message;
	private String navTabId;
	private String rel;
	private boolean closeCurrent;
	private String forwardUrl;
	private String confirmMsg;
	private String dialogMsg;
	private String dialogId;
	private String divId;
    public DwzResult(){}
    
	public DwzResult(String statusCode, String message, String navTabId,
			String rel, boolean callbackType, String forwardUrl) {
		this.statusCode = statusCode;
		this.message = message;
		this.navTabId = navTabId;
		this.rel = rel;
		this.closeCurrent = callbackType;
		this.forwardUrl = forwardUrl;
	}

	public String getDialogMsg() {
		return dialogMsg;
	}

	public void setDialogMsg(String dialogMsg) {
		this.dialogMsg = dialogMsg;
	}

	public String getStatusCode() {
		return statusCode == null ? "" : statusCode;
	}

	public void setStatusCode(String statusCode) {
		this.statusCode = statusCode;
	}

	public String getMessage() {
		return message == null ? "" : message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public String getNavTabId() {
		return navTabId == null ? "" : navTabId;
	}

	public void setNavTabId(String navTabId) {
		this.navTabId = navTabId;
	}

	public String getRel() {
		return rel == null ? "" : rel;
	}

	public void setRel(String rel) {
		this.rel = rel;
	}

	public String getCloseCurrent() {
		return closeCurrent ? "true" : "false";
	}

	public void setCloseCurrent(boolean callbackType) {
		this.closeCurrent = callbackType;
	}

	public String getForwardUrl() {
		return forwardUrl == null ? "" : forwardUrl;
	}

	public void setForwardUrl(String forwardUrl) {
		this.forwardUrl = forwardUrl;
	}

	public String getConfirmMsg() {
		return confirmMsg == null ? "" : confirmMsg;
	}

	public void setConfirmMsg(String confirmMsg) {
		this.confirmMsg = confirmMsg;
	}

	public String getDialogId() {
		return dialogId;
	}

	public void setDialogId(String dialogId) {
		this.dialogId = dialogId;
	}

	public String getDivId() {
		return divId;
	}

	public void setDivId(String divId) {
		this.divId = divId;
	}	
}
